package cn.rengy.web.excelcompare.service;

import cn.rengy.isql.Dao;
import cn.rengy.lang.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
public class ExcelUpdateConfigService {
    @Autowired
    private Dao dao;
    @Transactional(rollbackFor = Exception.class)
    public ResultEntity deleteById(Long id){
        dao.update("delete from excel_update_config_detail where update_config_id=?",id);
        dao.update("delete from excel_update_config where id=?",id);
        return ResultEntity.ok();
    }
}
